home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 March / PCWorld_2002-03_cd.bin / Software / TemaCD / xteq / setup.exe / {app} / plugins / XQ IE Window Title.xpl < prev    next >
Text File  |  1999-12-23  |  1KB  |  55 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH"="Internet\Internet Explorer\Appearance"
  5. "NAME"="Window Title"
  6. "VERSION"="1.20"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Title"
  9. "DESCRIPTION 1"="You can change the title of the Internet Explorer window here."
  10. "DESCRIPTION 2"="To have to original title again, clear the field and press "Apply"."
  11. "AUTHOR"="Xteq Systems"
  12. "CONTACTURL"="http://www.xteq.com"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"=" "
  15. "COMMENT 2"="Thanks to cicp^p for his help!"
  16.  
  17.  
  18. Sub Plugin_Initialize 
  19.  if RegPathExists("HKCU\Software\Microsoft\Internet Explorer") then
  20.     s=RegReadValue("HKCU\Software\Microsoft\Internet Explorer\Main\Window Title")
  21.     SetUIElement 1,s
  22.  else
  23.     Disable()
  24.  end if
  25. End Sub
  26.  
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31.  
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  s=GetUIElement(1)
  35.  
  36.  if len(s)=0 then
  37.  
  38.   'If values exists, delete it
  39.   s=RegReadValue("HKCU\Software\Microsoft\Internet Explorer\Main\Window Title")
  40.   if IsEmpty(s)=false then
  41.      Call RegDeleteValue("HKCU\Software\Microsoft\Internet Explorer\Main\Window Title")
  42.   end if
  43.  
  44.  else
  45.   Call RegWriteValue("HKCU\Software\Microsoft\Internet Explorer\Main\Window Title",s,1)
  46.  end if
  47. End Sub
  48.  
  49.  
  50. Sub Plugin_Terminate 
  51. End Sub
  52.  
  53.  
  54.  
  55.